package www.shw.com;

public class ObjectTest {

	public static void main(String[] args) {
		String s1 = "hello";
		String s2 = "hello";
		System.out.println(s1==s2);
		System.out.println(s1.equals(s2));
		
		
		
		String w1 = "hello";
		String w2 = new String("hello");
		System.out.println(w1==w2);
		System.out.println(w1.equals(w2));
		
		Integer c1 = 4;
		Integer c2 = 4;
		
		System.out.println(c1==c2);
		System.out.println(c1.equals(c2));
		
		
	}
}
